Skip to content

[3.13] gh-123431: Harmonize extension code checks in pickle (GH-123434)#123459

Merged
Yhg1s merged 1 commit intopython:3.13from
miss-islington:backport-0c3ea30-3.13
Sep 2, 2024
Merged

[3.13] gh-123431: Harmonize extension code checks in pickle (GH-123434)#123459
Yhg1s merged 1 commit intopython:3.13from
miss-islington:backport-0c3ea30-3.13

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Aug 29, 2024

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

  • The Python implementation now raises exception for the extension code
    with false boolean value.
  • Simplify the C code. RuntimeError is now raised in explicit checks.
  • Add many tests.
    (cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…123434)

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

* The Python implementation now raises exception for the extension code
  with false boolean value.
* Simplify the C code. RuntimeError is now raised in explicit checks.
* Add many tests.
(cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants